﻿using System;
using System.ServiceModel;

namespace Server
{
    internal static class Program
    {
        private static void Main()
        {
            var host = new ServiceHost(typeof(NorthwindDataService));
            host.Open();

            Console.WriteLine("The Northwind Data service is running.");
            Console.WriteLine("Press <Enter> to stop the server.");

            Console.ReadLine();

            Console.WriteLine("Wait while the server shuts down (this can take a few seconds)");
            host.Close();
        }
    }
}